package com.ruoyi.logCen.service.impl;

import com.ruoyi.logCen.domain.LogInfo;
import com.ruoyi.logCen.mapper.LogInfoMapper;
import com.ruoyi.logCen.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class LogInfoServiceImpl implements LogInfoService {

    @Autowired
    private LogInfoMapper logInfoMapper;

    @Override
    public List<LogInfo> getAllLogInfo() {
        return logInfoMapper.getAllLogInfo();
    }

    @Override
    public List<LogInfo> getAllLogInfoGroupByTopic() {
        return logInfoMapper.getAllLogInfoGroupByTopic();
    }

    @Override
    public LogInfo selectOne(LogInfo logInfo) {
        return logInfoMapper.selectOne(logInfo);
    }
}
